package com.epam.kulibaba.components.specialPrice;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import com.epam.kulibaba.components.Component;

public class SpecialPrice extends Component{
	public static final String RESULTTABLE = "//tbody/tr";
	
	@FindBy(xpath = SpecialPrice.RESULTTABLE)
	private WebElement resultTable;
	
	public WebElement getResultTable(){
		return resultTable;
	}
	public  SpecialPrice getSpecialPrice(WebDriver driver) {
		SpecialPrice specialPrice = PageFactory.initElements(driver,
				SpecialPrice.class);		
		return specialPrice;
	}
}
